//
//  UCenterViewController.h
//  OrderSeat
//
//  Created by 王威 on 14-1-14.
//  Copyright (c) 2014年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@class UCenterDataSource;
@interface UCenterViewController : BaseViewController<UITextFieldDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate>

@property (weak, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (weak, nonatomic) IBOutlet UIView *headView;
@property (weak, nonatomic) IBOutlet UIView *bodyView;
@property (weak, nonatomic) IBOutlet UIImageView *photoView;
@property (weak, nonatomic) IBOutlet UIButton *sirBtn;
@property (weak, nonatomic) IBOutlet UIButton *ladyBtn;
@property (weak, nonatomic) IBOutlet UITextField *nicknameTF;
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UIButton *telBtn;
@property (weak, nonatomic) IBOutlet UITextField *emailTF;
@property (weak, nonatomic) IBOutlet UIButton *passwordBtn;
@property (weak, nonatomic) IBOutlet UIButton *saveBtn;

@property (strong, nonatomic) NSString *tel;
@property (strong, nonatomic) UCenterDataSource *dataSource;

@end

@interface UCenterDataSource : BaseDataSource

@property (strong, nonatomic) UCenterViewController *Controller;

- (void)fetchUserInfo;
- (void)updateUser:(NSDictionary *)params;
- (void)updatePhoto;

@end
